package com.tgpms.web.element.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 检查要素记录表
 * 
 * @author jl
 * @since 2020-11-05 09:40:32
 */
@Data
@TableName("WS_ELEMENT_RECORD")
public class WsElementRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 交验单号
	 */
	@ApiModelProperty(value = "交验单号")
	@TableId(value = "EXAMINATION" , type = IdType.INPUT)
	private String examination;
	/**
	 * 物资编码
	 */
	@ApiModelProperty(value = "物资编码")
	@TableField(value = "COMMODITY_NUMBER")
	private String commodityNumber;
	/**
	 * 要素编码
	 */
	@ApiModelProperty(value = "要素编码")
	@TableField(value = "WSE_CODE")
	private String wseCode;
	/**
	 * 检查状态
	 */
	@ApiModelProperty(value = "检查状态")
	@TableField(value = "STATUS")
	private String status;
	/**
	 * 插入人
	 */
	@ApiModelProperty(value = "插入人")
	@TableField(value = "INSERT_USER")
	private String insertUser;
	/**
	 * 插入时间
	 */
	@ApiModelProperty(value = "插入时间")
	@TableField(value = "INSERT_DATE")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date insertDate;
	/**
	 * 修改人
	 */
	@ApiModelProperty(value = "修改人")
	@TableField(value = "MODIFY_USER")
	private String modifyUser;
	/**
	 * 修改时间
	 */
	@ApiModelProperty(value = "修改时间")
	@TableField(value = "MODIFY_DATE")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date modifyDate;
	/**
	 * 数据拥有者
	 */
	@ApiModelProperty(value = "数据拥有者")
	@TableField(value = "DATA_OWNER")
	private String dataOwner;

}
